Configure users with CLI.
Note
--userName
, --emailID
, --roles
and --password
are
mandatory parameters.This example adds a new user, specifying user name, user email address, password, roles, organization and mobile number..
$ efa auth user add --userName testabc --emailID testabc@gmail.com --password password --roles SystemAdmin --organization Org --mobileNumber 9122424356
This example blocks a specified user.
$ efa auth user block-unblock --userName=testUser --isBlock=true
This example unblocks a specified user.
$ efa auth user block-unblock --userName=testUser --isBlock=false
This example resets a password for a specified user.
$ efa auth user reset-password --userName testabc --emailID testabc@gmail.com --password password123 Successfully updated the user configuration. --- Time Elapsed: 2.69181206s ---
This example changes a password.
$ efa auth user change-password --oldPassword=test1234 --newPassword test456 The password was changed successfully. --- Time Elapsed: 2.469497707s ---
This example deletes a specified user.
$ efa auth user delete --userName testabc Deleted User configuration successfully. --- Time Elapsed: 405.54142ms ---
This example lists active users with authentication type of HOST.
$ efa auth user show-active --authType=HOST +----------+-----------+-----------------------------------------+ | Username | Auth Type | Active Since | +----------+-----------+-----------------------------------------+ | anoop | HOST | 2022-03-07 10:01:52.094972524 +0530 IST | +----------+-----------+-----------------------------------------+